package com.glasses.service;

import com.alibaba.fastjson.JSONObject;
import com.glasses.orm.base.baseImp.BaseServiceInterface;

import java.util.Map;

/**
 * Created by ashin on 2018/8/21.
 */
public interface AddressService extends BaseServiceInterface {

    /**
     * 设为默认地址
     * @param map
     * @return
     * @throws Exception
     */
    JSONObject updateDefault(Map map) throws Exception;

    /**
     * 新增地址
     * @param map
     * @return
     */
    JSONObject addAddress(Map map) throws Exception;

    /**
     * 更新地址
     * @param map
     * @return
     */
    JSONObject updateAddress(Map map) throws Exception;
}
